var Client = {
	view:{
		width: $(window).width(),
		height: $(window).height()
	}
	
}

$(function(){
	var init = function(){
		$('.mui-scroll-wrapper').height(Client.view.height - $('#content-wrapper nav').offset()['top'] - 60);


		$('nav a').on('click', function(evt){
			evt.preventDefault();
			$this = $(this);
			$this.closest('nav').find('a').not(this).removeClass('active');
			$this.addClass('active');

			var $target = $($this.attr('href'));
			$target.siblings('.mui-scroll-wrapper').not($target).hide();
			$target.show();

		});


		$('nav a:first').trigger('click');
	}


	init();

	
});


mui.init(
	mui('.mui-scroll-wrapper')
	.scroll({
        scrollY: true 
    })
);

